package com.sfx.messagequeue.common.request;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description: 这个类表示客户端给服务器发送的请求
 * User: sfx
 * Date: 2023-08-11
 * Time: 15:42
 */
public class Request implements Serializable {
    // 请求的类型-->远程调用具体调用的是哪一个核心API
    private int type;
    // 传输数据的长度为length
    private int length;
    // 数据载荷部分 -- > 具体的远程调用传入的参数
    private byte[] payload;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte[] getPayload() {
        return payload;
    }

    public void setPayload(byte[] payload) {
        this.payload = payload;
    }
}